home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
dsiic2.zip
/
DIR-DEMO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-15
|
701b
|
30 lines
/* Copyright (c) James L. Pinson 1990,1991 */
/********************** DIR-DEMO.C ***************************/
#include "mydef.h"
#include <stddef.h>
#include <string.h>
int start(int argc, char *argv[])
{
extern struct screen_structure scr;
extern struct window_structure w[];
int dir_win; /* handle for directory window */
char selection[13]; /* string to receive the name of file selected */
cls();
dir_win= win_make(35,2,12,20,STD_FRAME,"",scr.normal,scr.normal);
dir("*.*",selection);
win_delete(dir_win);
if (strlen(selection)==0) print (1,1, "No file selected.");
else
print(1,1,"The selected file was "); print_here(selection);
return(0);
}